package com.yunhuakeji.wddx.control;

import java.io.InputStream;
import net.sf.json.JSONArray;
import com.yunhuakeji.wddx.impl.IMReport;
import com.yunhuakeji.wddx.service.ReportService;

public class WDSJControllerApp extends ActionTicketSupport {
	private static final long serialVersionUID = 1L;

	private InputStream inputStream;
	private String callback, rm_xq,path,result;

	public WDSJControllerApp() throws Exception {
		super();
	}

	public String JBXXJump() {
		if (this.CheckTimeTicket("jbxx")) {
			path = JSONArray.fromObject(this.getFunctionInterfaceList()).toString();
			return SUCCESS;
		} else {
			return "error";
		}
	}

	public String SZXXJump() {
		if (this.CheckTimeTicket("szxx")) {
			path = JSONArray.fromObject(this.getFunctionInterfaceList()).toString();
			return SUCCESS;
		} else {
			return "error";
		}
	}

	public String XJYDXXJump() {
		if (this.CheckTimeTicket("xjyd")) {
			path = JSONArray.fromObject(this.getFunctionInterfaceList()).toString();
			return SUCCESS;
		} else {
			return "error";
		}
	}

	public String PYPJXXJump() {
		if (this.CheckTimeTicket("pypj")) {
			path = JSONArray.fromObject(this.getFunctionInterfaceList()).toString();
			return SUCCESS;
		} else {
			return "error";
		}
	}

	public String QGZXXXJump() {
		if (this.CheckTimeTicket("qgzx")) {
			path = JSONArray.fromObject(this.getFunctionInterfaceList()).toString();
			return SUCCESS;
		} else {
			return "error";
		}
	}

	public String XSZZXXJump() {
		if (this.CheckTimeTicket("xszz")) {
			path = JSONArray.fromObject(this.getFunctionInterfaceList()).toString();
			return SUCCESS;
		} else {
			return "error";
		}
	}

	public String WJCFXXJump() {
		if (this.CheckTimeTicket("wjcf")) {
			path = JSONArray.fromObject(this.getFunctionInterfaceList()).toString();
			return SUCCESS;
		} else {
			return "error";
		}
	}

	public String ZSJump() {
		if (this.CheckTimeTicket("zs")) {
			path = JSONArray.fromObject(this.getFunctionInterfaceList()).toString();
			return SUCCESS;
		} else {
			return "error";
		}
	}

	public String RCSWXXJump() {
		if (this.CheckTimeTicket("rcsw")) {
			path = JSONArray.fromObject(this.getFunctionInterfaceList()).toString();
			return SUCCESS;
		} else {
			return "error";
		}
	}

	public String DTXXJump() {
		if (this.CheckTimeTicket("dt")) {
			path = JSONArray.fromObject(this.getFunctionInterfaceList()).toString();
			return SUCCESS;
		} else {
			return "error";
		}
	}

	public String getStudentBasicInfo() {
		result =  new ReportService().getStudentBasicInfoWithApp(this.getUserid(),this.getTicket());
		return SUCCESS;
	}

	public String getStudentSZXX() {
//		result =  new IMReport().getStudentSZXX(this.getUserid(),this.getTicket()).toString();
		result =  new ReportService().getStudentSZXXWithApp(this.getUserid(),this.getTicket());
		return SUCCESS;
	}

	public String getStudentXJYD() {
//		result =  new IMReport().getStudentXJYD(this.getUserid(),this.getTicket()).toString();
		result =  new ReportService().getStudentXJYDWithApp(this.getUserid(),this.getTicket());
		return SUCCESS;
	}

	public String getStudentPJPY() {
//		result =  new IMReport().getStudentPJPY(this.getUserid(),this.getTicket()).toString();
		result =  new ReportService().getStudentPJPYWithApp(this.getUserid(),this.getTicket());
		return SUCCESS;
	}

	public String getStudentQGZX() {
//		result =  new IMReport().getStudentQGZX(this.getUserid(),this.getTicket()).toString();
		result =  new ReportService().getStudentQGZXWithApp(this.getUserid(),this.getTicket());
		return SUCCESS;
	}

	public String getStudentXSZZ() {
//		result =  new IMReport().getStudentXSZZ(this.getUserid(),this.getTicket()).toString();
		result =  new ReportService().getStudentXSZZWithApp(this.getUserid(),this.getTicket());
		return SUCCESS;
	}

	public String getStiudentWJCF() {
//		result =  new IMReport().getStiudentWJCF(this.getUserid(),this.getTicket()).toString();
		result =  new ReportService().getStudentWJCFWithApp(this.getUserid(),this.getTicket());
		return SUCCESS;
	}

	public String getStudentZS() {
//		result =  new IMReport().getStudentZS(this.getUserid(),this.getTicket()).toString();
		result =  new ReportService().getStudentZSWithApp(this.getUserid(),this.getTicket());
		return SUCCESS;
	}

	public String getStudentRCSW() {
//		result =  new IMReport().getStudentRCSW(this.getUserid(),this.getTicket()).toString();
		result =  new ReportService().getStudentRCSWWithApp(this.getUserid(),this.getTicket());
		return SUCCESS;
	}

	public String getStudentDT() {
//		result =  new IMReport().getStudentDT(this.getUserid(),this.getTicket()).toString();
		result =  new ReportService().getStudentDTWithApp(this.getUserid(),this.getTicket());
		return SUCCESS;
	}
	
	public String getBGFunctionList(){
		
		result =  new IMReport().getBGFunctionList(this.getUserid()).toString();
		return SUCCESS;
	}

	public InputStream getInputStream() {
		return inputStream;
	}

	public void setInputStream(InputStream inputStream) {
		this.inputStream = inputStream;
	}

	public String getCallback() {
		return callback;
	}

	public void setCallback(String callback) {
		this.callback = callback;
	}

	public String getRm_xq() {
		return rm_xq;
	}

	public void setRm_xq(String rm_xq) {
		this.rm_xq = rm_xq;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getResult()
	{
		return result;
	}

	public void setResult(String result)
	{
		this.result = result;
	}

}
